package com.example.novelweb.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.novelweb.model.entity.Novel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.novelweb.model.vo.NovelVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author PERSON
* @description 针对表【novel(小说)】的数据库操作Mapper
* @createDate 2025-01-10 18:32:23
* @Entity com.example.novelweb.model.entity.Novel
*/
public interface NovelMapper extends BaseMapper<Novel> {

  Page<NovelVO> pageNovelVO(Page<NovelVO> page
      , @Param(Constants.WRAPPER) Wrapper<NovelVO> queryWrapper);

  Page<NovelVO> pageVOByKeys(Page<Object> objectPage
      , @Param(Constants.WRAPPER) Wrapper<NovelVO> queryWrapper
      , @Param("list") String setString, @Param("size") Integer size);

  List<NovelVO> listMaxCollects(@Param("limit") int limit);
}




